#pragma once
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <iomanip>

using namespace std;
#include "Car.h"
class SportsCar :
	public Car
{
private:
	double maxSpeed;
public:

	SportsCar()
	{
	}

	SportsCar(string brand, int year, double purchasingPrice, double sellingPrice, int seats, int doors, double maxSpeed)
		: Car(brand, year, purchasingPrice, sellingPrice, seats, doors)
	{
		this->maxSpeed = maxSpeed;
	}

	~SportsCar()
	{
	}

	void setMaxSpeed(double maxSpeed){ this->maxSpeed = maxSpeed; }
	double getMaxSpeed(){ return maxSpeed; }

	void print()
	{
		Car::print();
		cout << ", Max Speed: " << maxSpeed;
	}
};

